.class public Lcom/waiqin365/lightapp/dailyreport/bi;
.super Landroid/widget/BaseAdapter;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/dailyreport/SimpleSelectMultActivity;

.field private b:Ljava/util/List;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/dailyreport/SimpleSelectMultActivity;Ljava/util/List;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/bi;->a:Lcom/waiqin365/lightapp/dailyreport/SimpleSelectMultActivity;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    iput-object p2, p0, Lcom/waiqin365/lightapp/dailyreport/bi;->b:Ljava/util/List;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/dailyreport/bi;Ljava/util/List;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/dailyreport/bi;->a(Ljava/util/List;)V

    return-void
.end method

.method private a(Ljava/util/List;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/bi;->b:Ljava/util/List;

    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/bi;->b:Ljava/util/List;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/bi;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    goto :goto_0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/bi;->b:Ljava/util/List;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/bi;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/a;

    goto :goto_0
.end method

.method public getItemId(I)J
    .locals 2

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5

    const v4, 0x7f02012d

    if-nez p2, :cond_0

    new-instance v1, Lcom/waiqin365/lightapp/dailyreport/bk;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/bi;->a:Lcom/waiqin365/lightapp/dailyreport/SimpleSelectMultActivity;

    invoke-direct {v1, v0}, Lcom/waiqin365/lightapp/dailyreport/bk;-><init>(Lcom/waiqin365/lightapp/dailyreport/SimpleSelectMultActivity;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/bi;->a:Lcom/waiqin365/lightapp/dailyreport/SimpleSelectMultActivity;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v2, 0x7f030281

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    const v0, 0x7f0c0c48

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/bk;->a:Landroid/widget/TextView;

    const v0, 0x7f0c0c49

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/bk;->b:Landroid/widget/ImageView;

    const v0, 0x7f0c0c4a

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/bk;->c:Landroid/view/View;

    const v0, 0x7f0c0c47

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/bk;->d:Landroid/widget/LinearLayout;

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    :goto_0
    iget-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/bk;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/bi;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/a;

    invoke-interface {v0}, Lcom/waiqin365/lightapp/dailyreport/c/a;->j_()Z

    move-result v2

    if-eqz v2, :cond_2

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/bk;->a:Landroid/widget/TextView;

    const-string/jumbo v3, "#1a1a1a"

    invoke-static {v3}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/bk;->b:Landroid/widget/ImageView;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    invoke-interface {v0}, Lcom/waiqin365/lightapp/dailyreport/c/a;->k_()Z

    move-result v2

    if-eqz v2, :cond_1

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/bk;->b:Landroid/widget/ImageView;

    const v3, 0x7f020129

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_1
    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/bk;->a:Landroid/widget/TextView;

    invoke-interface {v0}, Lcom/waiqin365/lightapp/dailyreport/c/a;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/bk;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v0}, Landroid/widget/LinearLayout;->setTag(Ljava/lang/Object;)V

    iget-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/bk;->d:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/waiqin365/lightapp/dailyreport/bj;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/dailyreport/bj;-><init>(Lcom/waiqin365/lightapp/dailyreport/bi;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object p2

    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/bk;

    move-object v1, v0

    goto :goto_0

    :cond_1
    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/bk;->b:Landroid/widget/ImageView;

    invoke-virtual {v2, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_1

    :cond_2
    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/bk;->a:Landroid/widget/TextView;

    const-string/jumbo v3, "#808080"

    invoke-static {v3}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/bk;->b:Landroid/widget/ImageView;

    const/16 v3, 0x8

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_1
.end method
